package com.jims.master.modules.base.netHosptial.service;


import com.jims.master.common.service.CrudService;
import com.jims.master.modules.base.netHosptial.dao.NetHisSerialDao;
import com.jims.master.modules.base.netHosptial.entity.NetHisSerial;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


/**
 * 配置序列号范围表Service
 * @author xueyx
 * @version 2017-03-16
 */
@Service
@Transactional(readOnly = true)
public class NetHisSerialService extends CrudService<NetHisSerialDao, NetHisSerial> {

	public String getNextNoByType(NetHisSerial netHisSerial){
		return dao.getNextNoByType(netHisSerial);
	}

	public void updateBytype(NetHisSerial netHisSerial){
		dao.updateBytype(netHisSerial);
	}
}